class Siteadmin::AwardsController < ApplicationController
	before_filter :require_admin
	load_and_authorize_resource :through => :profile

	active_scaffold :awards do |config|
		config.create.columns.exclude :profile
		config.update.columns.exclude :profile

		config.columns[:name].label = "Project Name"
		config.columns[:awardname].label = "Award Name"
		config.columns[:yearaward].label = "ปีที่ได้รับรางวัล"

		config.list.columns = [:name, :awardname, :yearaward]
	end
end
